package com.easondongh.business.service;

import com.easondongh.business.domain.Provider;
import com.easondongh.business.domain.Provider;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easondongh.business.vo.ProviderQueryVo;
import com.easondongh.common.vo.BasePageQueryVo;
import com.easondongh.common.vo.PageResult;

import java.util.List;

/**
 * @author EasonDongH
 * @date 2020/5/27 8:16
 */
public interface ProviderService extends IService<Provider>{
    /**
     * 根据查询条件分页查询供应商
     * @param queryCondition
     * @return
     */
    PageResult<Provider> getByPage(BasePageQueryVo<ProviderQueryVo> queryCondition);

    /**
     * 启用该供应商
     * @param id
     * @return
     */
    boolean enableById(Integer id);

    /**
     * 弃用该供应商
     * @param id
     * @return
     */
    boolean disableById(Integer id);

    List<Provider> getAllEnableProvider();
}
